/**      
 * @file		incrementOp.cpp
 * @description		This file demonstrates the use of the unary
 *			operator ++
 * @course		CSCI 123 Section 00000
 * @assignment		Sample 8
 * @date		mm/dd/yyyy
 * @author		Brad Rippe (00000000) brippe@fullcoll.edu
 * @version		1.0
 */
#include <iostream>
using namespace std;

/**
 * @return zero if the application executes successfully
 */
int main() {
	int c;
	// demonstrate postincrement
	c = 5;			// assign 5 to c
	cout << c << endl;	// print 5
	cout << c++ << endl;	// print 5 then postincrement
	cout << c << endl;	// print 6                     
	cout << endl;		// skip a line

	// demonstrate preincrement
	c = 5;			// assign 5 to c
	cout << c << endl;	// print 5                    
	cout << ++c << endl;	// preincrement then print 6
	cout << c << endl;	// print 6

	return 0; 
}
